package cn.itcast.mp.mapper;

import cn.itcast.mp.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 95858
* @description 针对表【tb_user】的数据库操作Mapper
* @createDate 2022-04-04 15:31:09
* @Entity cn.itcast.mp.pojo.User
*/
public interface UserMapper extends BaseMapper<User> {
    List<User> selectList();

    int insert(User user);

    User findById(long id);

    int updateById(@Param("user") User user, @Param("id") long id);

}




